package com.zkr.sparecost.model;


import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;


/**
 * Created by lenovo on 2020/12/22.
 */
@Data
public class SpareCostAddVo {

    private Integer id;

    @NotBlank(message = "法人名称不能为空!")
    private String legalPersonName;

    @NotBlank(message = "法人编码不能为空!")
    private String legalPersonCode;

    @NotBlank(message = "工厂编码不能为空!")
    private String legalPlantCode;

    @NotBlank(message = "备件编码不能为空!")
    private String materialCode;

    @NotBlank(message = "备件名称不能为空!")
    private String materialName;

    @NotNull(message = "价格单价不能为空!")
    private Double price;

    @NotBlank(message = "价格分类不能为空!")
    private String priceType;

    //备注
    private String remark;

    @NotBlank(message = "含税类型不能为空!")
    private String taxType;

    @NotBlank(message = "货币类型不能为空")
    private String currencyCode;
    private String currencyCodeName;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startStartTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startEndTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endStartTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endEndTime;

    //创建人
    private String creatorName;
    //创建时间
    private Date creatorTime;
    //修改人
    private String updateName;
    //修改时间
    private Date updateTime;

    private Boolean status;

}
